package com.java2020.online_mall.service;

import com.java2020.online_mall.model.Goods;
import com.java2020.online_mall.model.GoodsParam;
import com.java2020.online_mall.model.GoodsSpec;
import com.java2020.online_mall.model.GoodsType;

import java.util.List;
import java.util.Map;

/**
 * @PackgeName: com.java2020.online_mall.service
 * @Author: MNHK
 * Date: 2020/5/3 10:14
 * @Version:1.8
 */

public interface GoodsService {

    void addGoods(GoodsParam goodsParam);

    int addSpec(GoodsSpec goodsSpec);

    int addType(GoodsType goodsType);

    int deleteSpec(GoodsSpec goodsSpec);

    int updateGoods(GoodsParam goodsParam);

    Map<String, Object> getGoodsInfo(String id);

    int deleteType(String id);

    int deleteGoods(String goodsId);

    List<Goods> getGoodsByType(String typeId);

    List<GoodsType> getType();
}
